package com.xxx.user.dao.repository;


import com.xxx.user.domain.document.ESDailyStationRevenueStatistics;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ESDailyStationRevenueStatisticsRepository extends ElasticsearchRepository<ESDailyStationRevenueStatistics, String> {

    @Query("{\"bool\": {\"must\": {\"match\": {\"station_id\": \"?0\"}}}}")
    List<ESDailyStationRevenueStatistics> findByStationId(String stationId);

}
